<style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
</style>
<div class="row animated fadeInRight">
    <div class="col-md-6">
        <div class="box box-success">
            <!--<div class="panel-heading">
                {:__('Profile')}
            </div>-->
            <div class="panel-body">

                <form id="update-form" role="form" data-toggle="validator" method="POST" action="{:url('general.profile/update')}">
                    {:token()}
<!--                    <input type="hidden" id="c-avatar" name="row[avatar]" value="{$admin.avatar|htmlentities}"/>-->
                    <div class="box-body box-profile">

                        <!--<div class="profile-avatar-container">
                            <img class="profile-user-img img-responsive img-circle" src="{$admin.avatar|cdnurl|htmlentities}" alt="">
                            <div class="profile-avatar-text img-circle">{:__('Click to edit')}</div>
                            <button type="button" id="faupload-avatar" class="faupload" data-input-id="c-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button>
                        </div>
-->
<!--                        <h3 class="profile-username text-center">{$admin.username|htmlentities}</h3>-->

                        <!--<div class="form-group">
                            <label for="username" class="control-label">登录账号:</label>
                            <input type="text" class="form-control" id="username" name="row[username]" disabled value="{$admin.username|htmlentities}"/>
                        </div>-->

                        <div class="form-group">
                            <label for="nickname" class="control-label">{:__('Nickname')}:</label>
                            <input type="text" class="form-control" id="nickname" name="row[nickname]" value="{$admin.nickname|htmlentities}" data-rule="required"/>
                        </div>
                        <div class="form-group">
                            <label for="nickname" class="control-label">{:__('Phone')}:</label>
                            <input type="text" class="form-control" id="phone" name="row[phone]" value="{$admin.phone|htmlentities}" data-rule=""/>
                        </div>
                        <div class="form-group">
                            <label class="control-label">{:__('Province_id')}:</label>
                            <input id="c-province_id" data-rule="required" data-source="district/index" data-params='{"custom[level]":"province"}' data-order-by="id" class="form-control selectpage" name="row[province_id]" type="text" value="{$admin.province_id|htmlentities}">
                        </div>
                        <div class="form-group">
                            <label class="control-label">{:__('City_id')}:</label>
                            <input id="c-city_id" data-rule="required" data-source="district/index" data-order-by="id" class="form-control selectpage" name="row[city_id]" type="text" value="{$admin.city_id|htmlentities}">
                        </div>
                        <div class="form-group">
                            <label class="control-label">{:__('District_id')}:</label>
                            <input id="c-district_id" data-rule="required" data-source="district/index" data-order-by="id" class="form-control selectpage" name="row[district_id]" type="text" value="{$admin.district_id|htmlentities}">
                        </div>
                        <div class="form-group">
                            <label for="address" class="control-label">{:__('Address')}:</label>
                            <input data-rule="required" id="address" class="form-control" name="row[address]" type="text" value="{$admin.address|htmlentities}">
                        </div>
                        <div class="form-group">
                            <label class="control-label">{:__('Entryimage')}（750*360）:</label>
                            <div class="input-group">
                                <input id="c-entryimage" class="form-control" size="50" name="row[entryimage]" type="text" value="{$admin.entryimage|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-entryimage" class="btn btn-danger faupload" data-input-id="c-entryimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-entryimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-entryimage" class="btn btn-primary fachoose" data-input-id="c-entryimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-entryimage"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-entryimage"></ul>
                        </div>
                        <div class="form-group">
                            <label class="control-label">{:__('Environmentimages')}:</label>
                            <div class="input-group">
                                <input id="c-environmentimages" class="form-control" size="50" name="row[environmentimages]" type="text" value="{$admin.environmentimages|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-environmentimages" class="btn btn-danger faupload" data-input-id="c-environmentimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-environmentimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-environmentimages" class="btn btn-primary fachoose" data-input-id="c-environmentimages" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-environmentimages"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-environmentimages"></ul>
                        </div>
                        <div class="form-group">
                            <label class="control-label">{:__('Introduce')}:</label>
                            <textarea id="c-introduce" class="form-control " rows="5" name="row[introduce]" cols="50">{$admin.introduce|htmlentities}</textarea>
                        </div>
                        <div class="form-group">
                            <label class="control-label">{:__('Introduceimages')}:</label>
                            <div class="input-group">
                                <input id="c-introduceimages" class="form-control" size="50" name="row[introduceimages]" type="text" value="{$admin.introduceimages|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-introduceimages" class="btn btn-danger faupload" data-input-id="c-introduceimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-introduceimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-introduceimages" class="btn btn-primary fachoose" data-input-id="c-introduceimages" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-introduceimages"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-introduceimages"></ul>
                        </div>

                        <!--<div class="form-group">
                            <label for="password" class="control-label">{:__('Password')}:</label>
                            <input type="password" class="form-control" id="password" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" name="row[password]" value="" data-rule="password"/>
                        </div>-->
                        <div class="form-group">
                            <button type="submit" class="btn btn-success">{:__('Submit')}</button>
                            <a href="see" onClick="javascript :history.go(-1);" class="btn btn-primary">返回</a>
<!--                            <button type="reset" class="btn btn-default">{:__('Reset')}</button>-->
                        </div>

                    </div>
                </form>
            </div>
        </div>

    </div>
    <!--<div class="col-md-8">
        <div class="panel panel-default panel-intro panel-nav">
            <div class="panel-heading">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list"></i> {:__('Admin log')}</a></li>
                </ul>
            </div>
            <div class="panel-body">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade active in" id="one">
                        <div class="widget-body no-padding">
                            <div id="toolbar" class="toolbar">
                                {:build_toolbar('refresh')}
                            </div>
                            <table id="table" class="table table-striped table-bordered table-hover" width="100%">

                            </table>

                        </div>
                    </div>

                </div>
            </div>
        </div>

    </div>-->
</div>
